package com.jiuli.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
@Slf4j
public class MainController {

    @GetMapping("/health")
    public String health(){
        log.info("main controller 的 health 被访问了！");
        return "ok!";
    }
}
